home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
misc
/
OpalDev.lha
/
AMOS
/
OpalExample.AMOS
/
OpalExample.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1992-11-09
|
1KB
|
47 lines
Unpack 15 To 1 : Rem LOWRES NO LACE PIC
'Unpack 14 To 1 : Rem LOWRES LACE PIC
Gosub PIC
L:
Repeat
I$=Upper$(Inkey$)
Until I$<>""
If I$="Q"
If _24BIT=1 : Extension_21_02EC 50 : Extension_21_001C : _24BIT=0 : End If
End
End If
If I$="P"
Gosub PIC
End If
I$=""
Goto L
PIC:
Screen Open 7,320,290,2,Lowres : Cls 0 : Screen To Back 7
F$=Fsel$("","","PIC A 24Bit PIC!")
Screen Close 7
View
If F$="" Then End
VSCRN= Extension_21_0208(0,F$,8)
If _24BIT=1
Poke OSCRN+142,0 : Rem set pixel read mask to 0
Extension_21_04D6 : Rem wait for last register update to complete
Extension_21_027E : Rem Update pixel read mask
Extension_21_04D6 : Rem Wait for end of Update
Extension_21_01C6 1 : Rem Mask only has an effect in palette mapped mode
Extension_21_0122 : Rem goto opal only display
Extension_21_0148
End If
OSCRN= Extension_21_05B2(VSCRN,0)
Extension_21_05FE 1
Poke OSCRN+142,255 : Rem set mask back to $ff
Extension_21_04D6
Extension_21_027E : Rem update mask
Extension_21_04D6
Extension_21_01C6 0
Extension_21_010C
Extension_21_0132
Extension_21_0268(VSCRN)
'Ovscroll24 12,52
_24BIT=1
Return
If _24BIT=1 Then Extension_21_001C : _24BIT=0
Return